module.exports = {
    apps: [
      {
        name: 'NuxtGitcodeNews',
        port: '18880',
        exec_mode: 'cluster',
        merge_logs: true,
        time: true,
        instances: 3,
        max_memory_restart: '1G',
        max_restarts: 10,
        // min_uptime: '30s',
        out_file: '/data/logs/gitcode-pm2/news-seo.out.log',
        error_file: '/data/logs/gitcode-pm2/news-seo.error.log',
        script: './.output/server/index.mjs',
        env: { PM2_ENV: 'production' },
        // node_args: '--max-old-space-size=1024',
        // kill_timeout: 5000,
        // listen_timeout: 15000,
        // wait_ready: true,
        // restart_delay: 3000,
        // exp_backoff_restart_delay: 100,
      },
    ],
  }